package cn.edu.sdu.order.backend.model;

import java.util.ArrayList;
import java.util.List;

public class FpgaExample {
    /**
     * fpga
     */
    protected String orderByClause;

    /**
     * fpga
     */
    protected boolean distinct;

    /**
     * fpga
     */
    protected List<Criteria> oredCriteria;

    public FpgaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * 描述:fpga表的实体类
     * @version
     * @author:  eb
     * @创建时间: 2020-12-24
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeIsNull() {
            addCriterion("fpga_code is null");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeIsNotNull() {
            addCriterion("fpga_code is not null");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeEqualTo(String value) {
            addCriterion("fpga_code =", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeNotEqualTo(String value) {
            addCriterion("fpga_code <>", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeGreaterThan(String value) {
            addCriterion("fpga_code >", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeGreaterThanOrEqualTo(String value) {
            addCriterion("fpga_code >=", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeLessThan(String value) {
            addCriterion("fpga_code <", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeLessThanOrEqualTo(String value) {
            addCriterion("fpga_code <=", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeLike(String value) {
            addCriterion("fpga_code like", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeNotLike(String value) {
            addCriterion("fpga_code not like", value, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeIn(List<String> values) {
            addCriterion("fpga_code in", values, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeNotIn(List<String> values) {
            addCriterion("fpga_code not in", values, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeBetween(String value1, String value2) {
            addCriterion("fpga_code between", value1, value2, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andFpgaCodeNotBetween(String value1, String value2) {
            addCriterion("fpga_code not between", value1, value2, "fpgaCode");
            return (Criteria) this;
        }

        public Criteria andMacIsNull() {
            addCriterion("mac is null");
            return (Criteria) this;
        }

        public Criteria andMacIsNotNull() {
            addCriterion("mac is not null");
            return (Criteria) this;
        }

        public Criteria andMacEqualTo(String value) {
            addCriterion("mac =", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotEqualTo(String value) {
            addCriterion("mac <>", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacGreaterThan(String value) {
            addCriterion("mac >", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacGreaterThanOrEqualTo(String value) {
            addCriterion("mac >=", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLessThan(String value) {
            addCriterion("mac <", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLessThanOrEqualTo(String value) {
            addCriterion("mac <=", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacLike(String value) {
            addCriterion("mac like", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotLike(String value) {
            addCriterion("mac not like", value, "mac");
            return (Criteria) this;
        }

        public Criteria andMacIn(List<String> values) {
            addCriterion("mac in", values, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotIn(List<String> values) {
            addCriterion("mac not in", values, "mac");
            return (Criteria) this;
        }

        public Criteria andMacBetween(String value1, String value2) {
            addCriterion("mac between", value1, value2, "mac");
            return (Criteria) this;
        }

        public Criteria andMacNotBetween(String value1, String value2) {
            addCriterion("mac not between", value1, value2, "mac");
            return (Criteria) this;
        }

        public Criteria andIpv4IsNull() {
            addCriterion("ipv4 is null");
            return (Criteria) this;
        }

        public Criteria andIpv4IsNotNull() {
            addCriterion("ipv4 is not null");
            return (Criteria) this;
        }

        public Criteria andIpv4EqualTo(String value) {
            addCriterion("ipv4 =", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4NotEqualTo(String value) {
            addCriterion("ipv4 <>", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4GreaterThan(String value) {
            addCriterion("ipv4 >", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4GreaterThanOrEqualTo(String value) {
            addCriterion("ipv4 >=", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4LessThan(String value) {
            addCriterion("ipv4 <", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4LessThanOrEqualTo(String value) {
            addCriterion("ipv4 <=", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4Like(String value) {
            addCriterion("ipv4 like", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4NotLike(String value) {
            addCriterion("ipv4 not like", value, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4In(List<String> values) {
            addCriterion("ipv4 in", values, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4NotIn(List<String> values) {
            addCriterion("ipv4 not in", values, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4Between(String value1, String value2) {
            addCriterion("ipv4 between", value1, value2, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv4NotBetween(String value1, String value2) {
            addCriterion("ipv4 not between", value1, value2, "ipv4");
            return (Criteria) this;
        }

        public Criteria andIpv6IsNull() {
            addCriterion("ipv6 is null");
            return (Criteria) this;
        }

        public Criteria andIpv6IsNotNull() {
            addCriterion("ipv6 is not null");
            return (Criteria) this;
        }

        public Criteria andIpv6EqualTo(String value) {
            addCriterion("ipv6 =", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6NotEqualTo(String value) {
            addCriterion("ipv6 <>", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6GreaterThan(String value) {
            addCriterion("ipv6 >", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6GreaterThanOrEqualTo(String value) {
            addCriterion("ipv6 >=", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6LessThan(String value) {
            addCriterion("ipv6 <", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6LessThanOrEqualTo(String value) {
            addCriterion("ipv6 <=", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6Like(String value) {
            addCriterion("ipv6 like", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6NotLike(String value) {
            addCriterion("ipv6 not like", value, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6In(List<String> values) {
            addCriterion("ipv6 in", values, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6NotIn(List<String> values) {
            addCriterion("ipv6 not in", values, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6Between(String value1, String value2) {
            addCriterion("ipv6 between", value1, value2, "ipv6");
            return (Criteria) this;
        }

        public Criteria andIpv6NotBetween(String value1, String value2) {
            addCriterion("ipv6 not between", value1, value2, "ipv6");
            return (Criteria) this;
        }

        public Criteria andPortIsNull() {
            addCriterion("port is null");
            return (Criteria) this;
        }

        public Criteria andPortIsNotNull() {
            addCriterion("port is not null");
            return (Criteria) this;
        }

        public Criteria andPortEqualTo(Integer value) {
            addCriterion("port =", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotEqualTo(Integer value) {
            addCriterion("port <>", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortGreaterThan(Integer value) {
            addCriterion("port >", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortGreaterThanOrEqualTo(Integer value) {
            addCriterion("port >=", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortLessThan(Integer value) {
            addCriterion("port <", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortLessThanOrEqualTo(Integer value) {
            addCriterion("port <=", value, "port");
            return (Criteria) this;
        }

        public Criteria andPortIn(List<Integer> values) {
            addCriterion("port in", values, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotIn(List<Integer> values) {
            addCriterion("port not in", values, "port");
            return (Criteria) this;
        }

        public Criteria andPortBetween(Integer value1, Integer value2) {
            addCriterion("port between", value1, value2, "port");
            return (Criteria) this;
        }

        public Criteria andPortNotBetween(Integer value1, Integer value2) {
            addCriterion("port not between", value1, value2, "port");
            return (Criteria) this;
        }
    }

    /**
     * 描述:fpga表的实体类
     * @version
     * @author:  eb
     * @创建时间: 2020-12-24
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * 描述:fpga表的实体类
     * @version
     * @author:  eb
     * @创建时间: 2020-12-24
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}